package cn.itcast.tx;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
	@Test
	public void test() {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"beanTx.xml");
		OrderService orderService = (OrderService) context
				.getBean("orderService");
		orderService.accountMoney();
	}
}
